import type { User } from '@/types/user'
import { request } from '@/utils/request'

type loginReqData = { mobile: string; password: string }
export const login = (data: loginReqData) => {
  return request<User>({
    method: 'POST',
    url: '/login/password',
    data,
  })
}
